package com.shu.transientTest;

import lombok.Data;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.*;

/**
 * @author ssm
 * @version V1.0
 * @description:
 * @date 2021/7/20 17:19
 */
@ToString
@Data
@Accessors(chain = true)
public class User implements Serializable{


    private static final long serialVersionUID = -1389637372562289485L;
    private String name;
    private Integer age;
    private transient String pwd;

//    @Override
//    public void writeExternal(ObjectOutput out) throws IOException {
//        out.writeObject(this);
//    }
//
//    @Override
//    public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
//        System.out.println((User) in.readObject());
//    }
}
